package com.cspg.ssss.job;

import com.cspg.ssss.domain.GradeConfEntity;
import com.cspg.ssss.repository.GradeConfMapper;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class ComplateProblemJob extends QuartzJobBean {
    private static final Logger log = LoggerFactory.getLogger(ComplateProblemJob.class);

    @Autowired
    GradeConfMapper gradeConfMapper;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        log.info("ComplateProblemJob ......++ ");
        GradeConfEntity en = gradeConfMapper.selectConfByName("complete_problem_day");
        log.info("ComplateProblemJob ......++ " + en.getConf_value()+"天");

    }
}
